package m3d31;

import java.io.BufferedOutputStream;
import java.io.FileOutputStream;
import java.io.IOException;

//字节缓冲输出流   继承了OutputStream
public class hBufferedOutputStream {
    public static void main(String[] args) throws IOException {
        //构造方法绑定目的地
        FileOutputStream fos = new FileOutputStream("day02\\src\\m3d31\\b.txt");

        //提高效率
        BufferedOutputStream bos = new BufferedOutputStream(fos);

        bos.write("写东西了".getBytes());
        bos.flush();
        //直接关闭bos就可
        bos.close();
    }
}
